Multi-agents cooperating method and system

ABSTRACT

A multi-agent cooperating system and method which is capable of being applied to a plurality of users with a simple composition and of performing efficient processing. The system comprises an agent group composed of a plurality of agents for providing services to the user, a user definition storing section for storing personal information such as user preferences for the options when requesting a service, and a user agent for converting the request from the user into an appropriate form with reference to the contents in the user definition storing section and transmitting them to the agent group, or transmitting the value of the attributes of the user with reference to the user definition storing section when user characteristics are requested from the agent group. The user agents are coupled to the agent group corresponding to each user.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a multi-agents cooperating method and a system which is capable of readily describing a distributed application for providing services by cooperatively performing a plurality of applications and processes in a distributing environment composed of a plurality of computers mutually connected via a network.

[0003] 2. Description of a Prior Art

[0004] An agent which is an entity of computing process such as a plurality of processes for performing a computing process on a distributed environment composed of a plurality of computers mutually connected via a network provides services in response to a request for service from a certain user or other agent.

[0005]FIG. 19 of the accompanying drawings is a block diagram of a conventional multi-agents cooperating system disclosed, for example, in Japanese Patent Laid-Open No. Hei 4-77827 and Japanese Patent Laid-Open No. Hei 4-279935. In FIG. 19, an agent providing a variety of services comprises a communicating section 102 for communicating information with an other agent, a communicating definition storing section 103 which is a data base storing definitions for determining contents of information to be communicated, procedure of communication and target of communication, communicating target determining and communicating section 104 for determining contents of information to be communicated, procedure of communication and target of communication by referring to the contents of the communicating definitions storing section 103, a rule base storing definitions of manner of plan or planning, and contents of the services, and a planning and service executing section 106 for providing planning and service referring to the contents of the rule base 105.

[0006] An operation of the conventional system will now be described with reference to the drawings. FIG. 20 is a flow diagram showing a total summary of the conventional system. As shown in FIG. 20, the process in the conventional system comprises a step 201 for determining if the ordered service is accepted to execute, a step 202 for determining if the order is really entrusted or not, and a step 203 for performing requested services.

[0007] In step 201, the agent 101 estimates contents (specification) of services requested by the other agent or user and decides, if it is acceptable, to execute processing to provide the requested services. If the agent 101 desires to accept the request, it inquires conditions for the acceptance to the other agent or user. In step 202, the other agent or user estimates the conditions to accept the request returned from the agent with its particular criterion so as to determine if it actually entrusts the execution of the services. In step 203, the agent 101 executes services having been entrusted thereto.

[0008]FIG. 21 is a detailed flow diagram of step 201 for determining if it accepts requests to execute the requested services. The step 201 for determining if it accepts requests to execute the requested services comprises a step 204 for receiving specification of the service requested by the other agent or user by the agent 101, a step 205 for estimating the specification of the requested service having been received in step 204 by the agent 101, a step 206 for determining if the agent 101 desires to accept the request on the basis of the estimated result in step 205, and a step 207 for transmitting reply of desiring to accept the request when the agent 101 has decided to accept the request in step 206.

[0009] In step 204, the agent 101 receives specification of services to be executed by the communicating section 102 from the other agent or user. In step 205, the agent 101 estimates a variety of restricting conditions for executing the services by the transmitting target and communicating section 104 in accordance with the procedure and restrictions of communication defined in the communicating definition storing section 103, refers to the rule base 105 in the planning and service executing section 106, and estimates the probability of executing the service by trying to produce a plan for executing the specification of the service. In step 206, the agent 101 judges if it accepts the request to perform the service on the basis of the estimated result in step 205. As a result of the judgment, if it does not accept it, the operation terminates. In the case of accepting the request, the agent 101 transmits the conditions for executing the service to the other agent or user through the communicating section 102 in step 207.

[0010]FIG. 22 is a detailed flow diagram of step 203 for executing the service having been entrusted in FIG. 20. Step 203 for executing the entrusted service comprises step 208 for receiving messages representing to entrust the service, step 209 for entrusting partial service after communicating with an other agent if necessary for executing the entrusted service, and step 210 for executing partial service by the agent 101.

[0011] In step 208, the agent 101 receives service-entrusting information from the other agent or user having decided to entrust the service in step 202 through the communicating section 102. In step 209, the agent 101, for executing the plan produced in the planning and service executing section 106 for executing the service, its transmitting target determining and communicating section 104 communicates through the communicating section 102 in accordance with the procedures and restrictions which are defined in the communicating definition storing section 103 with the other agent capable of executing a part of the plan when required. In step 210, the service which can be processed by the agent 101 itself is executed in the planning and service executing section 106.

[0012]FIG. 23 is a block diagram of a conventional multi-agent cooperating system disclosed for example in Japanese Patent Laid-Open No. Hei 3-84652. In FIG. 23, the multi-agent cooperating system comprises a plurality of agents 111 for providing a variety of services, a user information administering section 112 for storing information from users, and a common memory 113 for communicating information among the user, agent 111 and the user information administering section 112 which use the multi-agent cooperating system.

[0013] The operation of the conventional system will now be described with reference to FIG. 23. When the user inputs a certain request to the common memory 113, any agent 111 estimates the request by referring to the contents of the user information administering section 112. When the agent 111 judges to be able to process the request, the processed result of the service held by the agent 111 is written into the common memory 113. If any competition arises due to a plurality of agents 111 trying to provide services, the competition would be resolved by eventually selecting a single service result among the competed services.

[0014] According to the conventional cooperating system and method shown in FIG. 19, however, definitions on the planning and resource division are mixedly stored in the same agent and are not processed by clearly distinguished steps. As a result, the definitions of the agent and the whole system would be complicated, and the coverage of the processing section would become difficult.

[0015] In the conventional system, it has been necessary to describe the relationship to the other agent at the portions related to the plan and communication in all of the agents. This would break the independency of the definitions of the agent, such that the extent of the system would be reduced.

[0016] Further, in the conventional system, the definitions of the cooperating operations are relative to the communicating procedure and communicating target, so as to distribute the cooperating manner to a plurality of agents. As a result, the change of the agent organization and the cooperation would be more difficult.

[0017] Since the conventional system has been composed of agents having different functions but with the same level, the definitions relating to the cooperative operations and planning in a variety of forms requested when practically applied would be complicated.

[0018] Further, in the conventional system, as the estimating criterion for accepting tasks by the agents, those having a certainly wide range of allowance such as cost and those having narrow range of allowance such as restrictions have been treated equally without any clear difference, it has been difficult to construct a system that can appropriately reply to a variety of situations and user requests.

[0019] In addition, since the conventional multi-agent cooperating system shown in FIG. 23 is composed as mentioned above, all of the agents must capture the format, contents and manner of use of the user information administering section. As a result, the composition of the whole system and the agents would become complicated. Further, it has been impossible to cope with a plurality of users.

[0020] Moreover, since the agent itself contains the definitions relative to the manner of cooperative operation to be performed with a suitable judgment of the actual situation for processing the request from the user, the amount of described contents from the agent would be enormous.

[0021] Since the same cooperative operation is repeated for the same request each time the user makes a request, approximately the same time is consumed at every request so as to cause low efficiency.

[0022] Further, since a single memory is used as a space for performing a cooperating process by a plurality of agents, the system description would be complicated and the processing efficiency would be lowered from a standpoint of effectively utilizing the services by the user in such a distributed environment as a number of computers are mutually coupled via a network.

SUMMARY OF THE INVENTION

[0023] The present invention has been attained to overcome problems as mentioned above, and is aimed at providing a multi-agent cooperating system and method which is capable of readily defining flexible cooperative operation of a wide application range and attending to the user requests, and system change and extension.

[0024] It is another object of this invention to provide a multi-agent cooperating system capable of operating in accordance with a plurality of users by a simple system composition without adding a complicated interpreting function to the agent.

[0025] It is further an object of this invention to provide a multi-agent cooperating system which is capable of efficiently processing the user request in a shorter time.

[0026] To attain such objects as aforementioned, a multi-agent cooperating method according to this invention provides services as requested by a user by cooperation of a plurality of agents, the planning method provides separation of which is obtaining combination of functions for attaining services requested by a user, data to be transmitted and received between the functions, and plans for the order in which the data is executed from resource division, which is a problem of distributing tasks so that tasks for attaining services for elemental functions so as to maintain the balance of load state or operating state of the resource connected to the elemental function or the elemental function for attaining the service requested by the user such that the problem is solved by the divided process for each problem.

[0027] Further, in the aforementioned multi-agent cooperating method, the definition of the specification with regard to the group of the members of the aforementioned agent and the procedure of the cooperation between the agents, the definition of the elemental function, and the definition of the plan, are defined separately from each other, and the agent executes the cooperative operation in accordance with the definition.

[0028] According to another embodiment of this invention, a multi-agent cooperating system for providing services in accordance with a request from user by cooperation of a plurality of agents comprises: one or more elemental function agents for providing elemental functions; one or more planning agents having definitions relating to the plan and having the ability to distribute tasks; and a field manager connected via said elemental function agents and planning agents, having definitions relating to the collection of the members of the planning agents and the elemental function agents and the procedure of cooperation between these two agents so as to administer the cooperative operation between the agents.

[0029] Further, in the aforementioned multi-agent cooperating system, the field manager comprises: a communicating means for transmitting/receiving information to/from the agents or the user; a cooperative definition data base for storing the members of the agent to perform the cooperative operation and the definition of the procedure of the cooperative operation; and a cooperative operation performing means for transmitting a message to make the agent perform the cooperative operation with reference to the definition of said cooperative definition data base via the communicating means.

[0030] Furthermore, according to the multi-agent cooperating system, the planning agent comprises: a communicating means for transmitting/receiving information to/from said agent or user; a rule base for storing rules to generate a plan; a planning performing means for generating a plan with reference to the rule base; an estimating data storing means for storing basics to estimate the request contained in the message from the field manager; and an estimating means for making estimation in accordance with the data contained in said estimating data storing means.

[0031] Further, according to the multi-agent cooperating system of this invention, the elemental function agent comprises: a communicating means for transmitting/receiving information to/from the agent or user; an functional definition storing means for storing a definition of an elemental service function or a part thereof; a service executing means for executing service or a part thereof in accordance with the contents of said elemental function definition storing means; an estimating data/profile storing means for storing estimating basics and profiles; and an estimating means for estimating in accordance with the data stored in said estimating data/profile storing means.

[0032] Further, according to the invention, there is provided a multi-agent cooperating method for executing cooperative operation using the multi-agent cooperating system, comprising the steps of: receiving a service request from a user in said field manager; transmitting the service request, with instructions related to cooperation added thereto, to the planning agent; executing estimation and planning in accordance with the service request and the instructions in the planning agent; judging if the result of the estimation in accordance with the service request and the instructions has reached a prescribed criterion and further the plan has been obtained; asking for the elemental function agent to make an estimation as to load; returning the result of the load estimation to the planning agent in the elemental function agent; making a general estimation of the estimated result from the planning agent and the elemental function agent; determining a planning agent to ask for the work to execute the service based on the result of the general estimation and informing this agent of that; and executing the process in accordance with the plan or with the elemental function agent in the entrusted planning agent.

[0033] Further, a multi-agent cooperating method for executing cooperative operation using said multi-agent cooperating system comprising the steps of: transmitting the profile stored in the estimating data/profile storing means to the field manager and the planning agent in the elemental function agent to be newly installed in the multi-agent cooperating system; estimating the contents of the profile received from the elemental function agent in the field manager and the planning agent; judging if the contents of the profile should be registered; and registering the elemental function agent in the cooperative definition data base as a member.

[0034] Further, according to the multi-agent cooperating system of this invention, as estimating criterion for entrusting and accepting tasks in the agent, there are provided classes of: restrictions that must be satisfied necessarily in view of specification; basics with relatively wide allowance which are prioritized in accordance with user or user's preference; and basics related to cost of resource that can be calculated from the load state of the CPU or associated equipments.

[0035] According to another embodiment of this invention, a multi-agent cooperating system for providing services in accordance with the request from the user by cooperative operation of a plurality of agents, comprising: one or more planning agents having definitions as to plan and ability of distributing tasks; a means for describing the plan in the definition of the planning agent; and a describing means for defining the plan for the user.

[0036] Further, in the aforementioned multi-agent cooperating system, the planning agent comprises a plan base for storing the plan having been described by the plan describing means, and a plan interpretation executing means for interpreting and executing the contents of the plan base.

[0037] According to another embodiment of this invention, a multi-agent cooperating system for providing services in reply to a request from user by cooperative operation of a plurality of agents, comprising: a user definition storing means provided for each user in order to store personal information related to each user; and a user agent provided to correspond to each user definition storing means for processing the request from the user by, for example, adding options thereto and then transmitting it to the agent.

[0038] In the aforementioned multi-agent cooperating system, the personal information contains user attribute representing objective characteristics of each user; and options to be used when requesting services.

[0039] According to another embodiment of this invention, a multi-agent cooperating system for providing services in reply to the request from user by cooperative operation of a plurality of agent, comprising: agents for providing services requested by the user; a field manager for administering the cooperative operation among the agents by adding cooperative information as instructive information related to the cooperative operation to the message, wherein a plurality of agents cooperate in the field being within the scope of the field manager using the messages.

[0040] In the aforementioned multi-agent cooperating system, the agent comprises a means for executing instructions contained in the instructive information corresponding to the instructive information.

[0041] In the aforementioned multi-agent cooperating system, there are provided a means for executing the services of the agent, an estimating means for estimating input messages, and an attributes storing means for storing attributes of the agents.

[0042] According to another embodiment of this invention, there is provided a multi-agent cooperating system for providing services in reply to a request from a user by cooperative operation of a plurality of agents, comprising a means for storing a combination of a pattern requested by the user and an agent corresponding to the request among the agents available for processing the request, wherein when a request for the same pattern is input, the request is preferentially distributed to this agent.

[0043] According to another embodiment of this invention, there is provided a multi-agent cooperating system for providing services in reply to a request from a user by cooperative operation of a plurality of agents, comprising a means for storing the pattern of request from the user and agent which would provide an estimated value equal to or more than a predetermined estimation criterion among the agents available for processing the request, wherein when a request of the same pattern is input again, the cooperative operation is executed only between the agents.

[0044] According to another embodiment of this invention, there is provided a multi-agent cooperating method for executing cooperative operation using a multi-agent cooperating system for providing services in reply to a request from a user comprising agents for providing services requested by a user, field managers for managing cooperative operations among the agents, so that a plurality of agents cooperate using message in a field being a scope of management by the field manager, wherein the field manager performs functions comprising the steps of: informing the agents in the field of the request from the user; presenting the conditions to accept the requests from the agent having been judged to be able to process the request to the user collectively; and making an agent corresponding to the condition designated by the user among the presented conditions execute the request.

[0045] According to another embodiment of this invention, a multi-agent cooperating system for presenting services corresponding to a request from a user by cooperative operation of a plurality of agents, comprising a means for presenting conditions to accept the processing by the agent for the request from the user collectively to the user, making the user select an appropriate agent, and entrusting the execution of the process to the selected agent.

[0046] In the multi-agent cooperating method of this invention, there are provided a means for defining the planning process and resource distributing process by separating them from each other, and a means for solving both process by two clearly divided processing steps. As a result, it is possible to deal with process of wide range, and the system for defining and processing the process can be simplified so that specification of the agents for planning and resource distribution and of the total system can be simplified.

[0047] Further, it is possible to simplify the cooperative definition and process by the means for defining the specification related to the procedure of the cooperation of the collection of the members of the agents and the agents to perform the cooperation from the definition of the elemental function and the definition of the plan and the means for executing the cooperative operation by the agents in accordance with the definition, so that the specification of the agents and the total system as to the cooperation can be simplified.

[0048] Further, providing the means for defining the plan for planning agent separately from the elemental function agent for providing an elemental function and the means for processing based on that would serve to clarify and simplify the total specification of the system and the specification of each agent as to the planning and the resource distribution. In addition, since the definition as to the plan is collected, the definitions for the other agents would be more highly independent from other portions of the system.

[0049] Since the means for collecting the processes related to the specification on the cooperative operation to the field manager is provided, the specification of each agent relating to the cooperation and the specification of the total system is clarified and simplified. Due to the collection of the definition on the cooperation, the other portion of the system related to the definition of the agents would be highly independent from the definition of other portions of the system.

[0050] In addition, for introducing a new elemental function agent to the system, due to the provision of a means for communicating information of the profile of an elemental function agent to be introduced into a proper region to the planning agent or field manager of the proper region, and a means for judging the utility of the newly incorporated elemental function agent by each planning agent and the field manager and registering the elemental function agent as a target to entrust the process when judging as available, when the elemental function agent is extended for the system, the system would automatically renew the necessary data due to the extension of the elemental function agent. As a result, it is totally unnecessary to manually renew the existing system, and no description other than the agent itself would be necessary so that the independency of the definition of the agent would become higher.

[0051] Further, three classes of criterion with different allowance range or weight are established as estimating criterion for task entrusting/accepting of the agents, and a means for defining the classes and estimating them for each class is provided. As a result, the definition of estimation and the provision of the process can be simplified so that a variety of estimation corresponding to situations can be made and the efficiency of the estimation would be improved.

[0052] In addition, since a means for freely defining the plan in the planning agency by the end user is provided, it is possible for the end user and the other programs to produce, as required, agents which have their own plan. As a result, the extension degree and flexibility are increased.

[0053] In the multi-agent cooperating system according to this invention, each user would access the multi-agent cooperating system through the user agent that uniquely manages its own information. The user agent modifies options in reply to the request of services from the user and converts them into appropriate forms which could be interpreted by each agent to be transmitted. In addition, the user agent can also obtain user information by almost the same communication as in the case of making communication between the agents. If a plurality of users exist, the user agent is connected to the multi-agent cooperating system in correspondence to each user.

[0054] Further, according to the multi-agent cooperating system of this invention, the cooperative operation may be made in accordance with the contents of the cooperative information transferred from the field manager, so that the agent can easily realize complicated operations just by providing means corresponding to the contents of information included in the cooperative information.

[0055] In the multi-agent cooperating system of this invention, the requested pattern and the agent corresponding to the request are stored, so that the stored agent can preferentially process when a request of the same pattern is input, without unnecessarily repeating the same cooperative operation for the same request each time.

[0056] In the multi-agent cooperating system of this invention, further, the requested pattern, and among the agents corresponding to the request agents having values not less than the estimating criterion of the field are stored, and when a request of the same pattern is input again, the cooperative operation limited just between these agents are carried out.

[0057] According to the multi-agent cooperating system of this invention, the user inputs a request without designating any agent, then conditions of agents available for processing the request are presented. The user selects an agent to actually perform the processing.

[0058] The above and other objects, features and advantages of this invention will become clear from the following description of the preferred embodiment thereof, taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0059]FIG. 1 is a block diagram showing a general composition of a multi-agent cooperating system according to a first embodiment of this invention;

[0060]FIG. 2 is a block diagram showing the inner composition of the field manager according to the first embodiment of this invention;

[0061]FIG. 3 is a block diagram of the inner composition of a planning agent according to a first embodiment of this invention;

[0062]FIG. 4 is a block diagram showing the inner composition of an elemental function agent according to a first embodiment of this invention;

[0063]FIG. 5 is a flow diagram representing the cooperative operation of the agent according to the first embodiment of this invention;

[0064]FIG. 6 is a flow diagram representing the operation of a new elemental function agent when started according to the first embodiment of this invention;

[0065]FIG. 7 is a block diagram showing a planning agent when a means for describing the plan is provided in the definition of the planning agent according to a second embodiment of this invention;

[0066]FIG. 8 is a block diagram of a multi-agent cooperating system according to a third embodiment of this invention;

[0067]FIG. 9 is a profile table showing contents of a user definition storing section according to a third embodiment of this invention;

[0068]FIG. 10 is a preference table showing contents of a user definition storing section according to the third embodiment of this invention;

[0069]FIG. 11 is a block diagram showing a multi-agent cooperating system corresponding to multi-users according to the third embodiment of this invention;

[0070]FIG. 12 is a block diagram showing a multi-agent cooperating system according to a fourth embodiment of this invention;

[0071]FIG. 13 is a flow diagram showing the function of the multi-agent cooperating system according to the fourth embodiment of this invention;

[0072]FIG. 14 is a block diagram showing a multi-agent cooperating system according to a fifth embodiment of this invention;

[0073]FIG. 15 is a flow diagram showing the operation of a multi-agent cooperating system according to the fifth embodiment of this invention;

[0074]FIG. 16 is a flow diagram showing the operation of a multi-agent cooperating system according to a sixth embodiment of this invention;

[0075]FIG. 17 is a block diagram showing a multi-agent cooperating system according to a seventh embodiment of this invention;

[0076]FIG. 18 is a flow diagram showing the operation of a multi-agent cooperating system according to a seventh embodiment of this invention;

[0077]FIG. 19 is a block diagram of a conventional multi-agent cooperating system;

[0078]FIG. 20 is a flow diagram showing the general operation of the conventional system;

[0079]FIG. 21 is a detailed flow diagram of conventional steps to determine whether the service request can be accepted;

[0080]FIG. 22 is a detailed flow diagram showing steps to carry out entrusted services in a conventional multi-agent cooperating system; and

[0081]FIG. 23 is a block diagram showing a conventional multi-agent cooperating system.

DETAILED DESCRIPTION

[0082] First Embodiment

[0083] A first embodiment according to the present invention will now be described with reference to the drawings.

[0084]FIG. 1 is block diagram showing a general composition of a multi-agent cooperating system according to a first embodiment of this invention. This multi-agent cooperating system comprises: a user interface 1 for communication between an end user and a multi-agent cooperating system of this embodiment; a field manager having definitions of collection of members of agents to execute cooperative operations and procedures of the cooperative operations in the multi-agent cooperating system so as to make the other agent execute cooperative operation; a planning agent having definitions as to plan; and an elemental function agent having an elemental function to perform services.

[0085]FIG. 2 is a block diagram showing the inner composition of the field manager 2 in FIG. 1. In FIG. 2, the field manager 2 comprises: a communicating section 5 for transmitting/receiving information to/from the agent or the user; a cooperative definition data base 6 for storing definitions of procedures of member and cooperative operations of agents to perform the cooperative operation; and a cooperative operation executing section 7 for communicating message for making other agent execute cooperative operation via the communicating section 5 referring to the definition of the cooperative definition data base 6.

[0086]FIG. 3 is a block diagram showing the inner composition of the planning agent 3 in FIG. 1. The planning agent 3 comprises: a communicating section 8 for transmitting/receiving information to/from other agents or a user; a rule base 9 for storing rules to produce plans; a planning executing section 10 for producing plans with reference to the rule base 9; an estimating data storing section 11 for storing criterion to estimate the request contained in the message from the field manager 2; and an estimating section 12 for making estimation in accordance with the contents of the estimating data storing section 11.

[0087]FIG. 4 is a block diagram showing the inner composition of the elemental function agent 4. In FIG. 4, the elemental function agent 4 comprises: a communicating section 13 for transmitting/receiving information to/from other agents or a user; a functional definition storing section 14 for storing definitions of services or elemental functions being a part thereof; a service executing section 15 for executing services or a part thereof in accordance with the contents of the functional definition storing section 14; an estimating data/profile storing section 16 for storing estimating criterion and profile; and an estimating section 17 for making estimation in accordance with the estimating data and profile.

[0088] The term planning signifies a problem to obtain combination of functions to attain services requested from a user, data to be transferred between functions, and plans being the procedures to execute them. The term resource distribution is a problem to distribute tasks to attain the services for the elemental function so that the balance between the elemental function to attain the plan or operating state of resources coupled to the elemental function or the load state can be maintained.

[0089] As a significant feature of this invention, the planning and the resource distribution are separated from each other, so that the problem can be solved by a process of two stages divided for each problem. Further, the specification as to the procedure of cooperation between the agents and the collection of the members of the agents to cooperate, the elemental function and the plan are defined separately from each other so that the agents can cooperate in accordance with the definitions. As a result, it is possible to easily describe the application and change the definitions.

[0090] A cooperative operation according to this embodiment will now be described with reference to the drawings. FIG. 5 is a flow diagram showing the cooperative operation of the agents in this embodiment. The cooperative operation of the agents includes: a step 21 for receiving a service request from the user by the field manager via the user interface 1; a step 22 for adding instructions relating to the cooperation to the service request and transmitting it to the planning agent 3; a step 23 for making estimation and planning in accordance with the service request and the instructions; a step 24 for judging if the estimated result reaches a prescribed criterion and the plan has been obtained; a step 25 in which the planning agent 3 entrusts the elemental function agent 4 to estimate the load; a step 26 in which the elemental function agent 4 estimates the load and returns the estimated result; a step 27 in which the field manager 2 generally estimates the estimated result returned from the planning agent 3 and the elemental function agent 4; a step 28 in which the field manager 2 determines the planning agent 3 for entrusting the task to actually attain the service from the result of the general estimation and transmitting the determined result; and a step 29 in which the entrusted planning agent 3 executes the process with the elemental function agent 4 in accordance with the aforementioned plan.

[0091] Details of the cooperative operation will now be described with reference to FIG. 5.

[0092] In the step 21, the field manager 2 receives the service request having been input by the user through the interface 1 via the communicating section 5. In the step 22, the field manager 2 transfers the instructions generated by the cooperative operation executing section 7 in accordance with the description in the cooperative definition data base 6 which is added to the service request from the user to appropriate planning agents 3 that are members to the planning agent 3. In step 23, the planning agent 3 estimates the specification of the services requested by the user in the estimating section 12 in accordance with the contents of the estimating data storing section 11, and the planning execution section 10 generates plan to execute the service requested in accordance with the contents of the rule base 9. In step 24, the planning agent 3 judges if the aforementioned estimated result has reached the prescribed criterion and the plan has been obtained. If the criterion is not satisfied or no plan is obtained, the planning agent 3 terminates its operation. Otherwise, in step 25, the planning agent 3 entrusts a necessary elemental function agent 4 via the communicating section 8 to estimate the position of the device associated with the elemental function agent 4 and the load via the communicating section 8. At this time, necessary information for the estimation is transmitted with the entrust. In step 26, the elemental function agent 4 receives the entrust via the communicating section 13, and estimates the received information in accordance with the contents in the estimating data and profile storing section 16, and returns the estimated result to the planning agent 3 via the communicating section 13. In step 28, the field manager 2 determines a planning agent 3 for entrusting the task to actually attain the services on the basis of the result of the general estimation for entrusting it to execute the task. In step 29, the planning agent having been entrusted processes the task together with the appropriate elemental function agent 4 in accordance with the aforementioned plan.

[0093] In the aforementioned process, there are three types of estimation criterion for entrusting or accepting the task, namely the process for the planning agent or the elemental function agent 4. These are a criterion that must be necessarily satisfied in view of the specification, a criterion having a wide range of allowance and being preferentially graded by the user based on the user requirements, and a criterion as to the cost of a resource calculated from the load state such as associated equipments or CPU. The estimation is made on the basis of these criterion.

[0094] In the aforementioned steps 23 and 24, the planning agent 3 estimates the specification of the service request from the user in the estimating section 12, and terminates the operation at this time point if the result does not reach the prescribed criterion. Otherwise, it would be possible that the planning executing section 10 generates plan and proceeds to the step 25 if the plan is obtained.

[0095] Further, it is also possible to return the estimated result of the elemental function agent 4 to the field manager 2.

[0096] In addition, the general estimation of the step 27 can also be presented to the user via the user interface 1 in an appropriate form of the total estimation result without performing in the field manager 2 to be executed by the user. Also, it is possible in the same manner that the determination of the entrusted agent in step 28 is executed by the user.

[0097] An operation of this embodiment when a new elemental function agent 4 is started will be described with reference to the drawings. FIG. 6 is a flow diagram representing operations associated with the start of the new elemental function agent 4 according to this embodiment. The operation associated with the start of the new elemental function agent 4 comprises: a step 31 in which the user inputs a new elemental function agent 4 to the system; a step 32 in which the elemental function agent 4 transmits the profiles of the estimating data and the profile storing section 16 to the field manager 2 and the planning agent 3; a step 33 in which the field manager 2 and the planning agent 3 estimates the contents of the received profile; a step 34 for judging if the field manager 2 and the planning agent 3 are to be registered; and a step 35 in which the field manager registers the elemental function agent 4 in the cooperative definition data base 6.

[0098] Details of the cooperative operation will now be described with reference to FIG. 6.

[0099] In step 31, the user install a new elemental function agent 4 into the system. In step 32, the elemental function agent 4 transmits the estimating data for estimating the specification and the profile in the estimating data and profile storing section 16 via the communicating section 13 to the field manager and the planning agent 3. In step 32, the field manager 2 and the planning agent 3 receive the profile through the communicating section 5 and 8. In step 33, the field manager and the planning agent 3 refer the contents in the profile to the contents in the cooperative definition data base 6, estimating data storing section 11, and the rule base 9 for estimating if the elemental function agent 4 is necessary for the field manager 2 or the planning agent 3. In step 34, if it is unnecessary for the field manager 2 or the planning agent 3 to be registered, the process in the field manager 2 and the planning agent 3 terminates. If it is judged as necessary, in step 35, the field manager 2 registers the elemental function agent 4 as a member in the cooperative definition data base 6.

[0100] Second Embodiment

[0101] A second embodiment of this invention will now be described with reference to the drawings.

[0102]FIG. 7 shows an embodiment having a means for describing plan in the definition of the planning agent 3. The function of the planning agent 3, communicating section 8, the estimating data storing section 11, and the estimating section 12 is almost the same as that in FIG. 3. The planning agent 3 further comprises a plan describing section 18 for making the user describe the plan, a plan base 19 for storing plan described by the plan describing section 18, and a plan interpretation executing section 20 for interpreting and executing the contents of the plan base 19.

[0103] In this embodiment shown in FIG. 7, the user uses the script language presented in the plan describing section 18 to describe a combination of functions to attain a certain service, data to be transmitted/received between the functions, and plan being a procedure to execute the data. The contents of the description are stored in the plan base by the plan describing section 18 so as to define a planning agent having a new plan by the user definition. The plan having been stored in the plan base 19 will be interpreted and executed by the plan interpreting/executing section 20.

[0104] The plan describing section 18, the plan base 19, and the plan interpreting section 20 can also be provided together with the rule base 9 and the planning executing section 10 of the planning agent 3 shown in FIG. 3. In this case, the plan base 19 is firstly tried for application in reply to the service request from the user, and then the planning executing section 10 executes the plan generation. As a result, possibility of making the plan generation taking a long time be unnecessary would arise, so that the efficiency for obtaining a plan by the planning agent 3 can be improved.

[0105] Third Embodiment

[0106]FIG. 8 shows a third embodiment of this invention. The multi-agent cooperating system comprises an agent group 41 composed of a plurality of agents for providing services to the user; a user definition storing section 42 for storing personal information of the user; a user agent 43 for referring to the contents of the user definition storing section 42 and converting a request from the user into appropriate form to be transferred to the agent group 41. FIGS. 9 and 10 show contents of the user definition storing section 42 according to this embodiment which respectively represent a profile table 44 for standing for the user attributes being user's objective characteristics such as name, section etc. and a preference table 45 representing preferences of the user for the option when service is requested. FIG. 11 shows a correspondence to multi-user of a multi-agent cooperating system which is composed to be capable of coping with a plurality of users in this embodiment. As shown in FIG. 11, each of the user agents 43 is coupled to the agent group 41 in correspondence to each user.

[0107] In the multi-agent cooperating system composed as mentioned above, the user inputs a request via the user interface presented by the user agent 43. The user agent having received the request refers to the preference table 45 and the profile table 44 of the user definition storing section 42 and carries out supplementary processing such as adding an option such as the resolution shown in FIG. 10 to the request so as thereafter to input to the agent group 41. Namely, the request input by the user is converted into an appropriate form reflecting the characteristics of the user so that the system can interpret the request input by the user to be transferred to the agent group 41.

[0108] Further, the user agent 43 returns a value of user's attributes requested by referring to the user definition storing section 42 when user characteristics are requested by the agent group 41 side.

[0109] As mentioned above, the user agent 43, in reply to the request from the user, or the request from the agents forming the agent group 41, the multi-agent cooperating system side need not take the form and contents of the user information into consideration which contributes to the simplification of the structure. Further, it is easily possible to cope with a plurality of users just by coupling a user agent 43 being a exclusive module for each user to the system.

[0110] Fourth Embodiment

[0111]FIG. 12 shows a fourth embodiment of this invention. The multi-agent cooperating system according to this embodiment comprises a plurality of agents 46 for providing services to the user and has a field 47 for prescribing method of cooperation. The field manager 48 instructs and manages the cooperative operation between the agents 46 in the field 47. A variety of information is communicated between the field manager 48 and the agents 46 via the message 49. The field manager 48 adds cooperative information 50 to the message 49 for giving instructions relating to the cooperative operation. Each agent 46 includes a selector 51 for interpreting the cooperative information 50 contained in the message 49 and determining the cooperative operation, an executing section 52 for executing the service of the agent 46, an estimating section 53 for estimating the message having input, and an attributes storing section 54 for storing attributes of the agent 46.

[0112]FIG. 13 is a flow diagram showing process according to this embodiment. The process will now be described with reference to this FIG. 13.

[0113] In the multi-agent cooperating system composed as mentioned above, the field manager 48 adds the cooperative information 50 to the message representing the request from the user (step 221). The cooperative information 50 in this embodiment is any one of the instructive information for entrusting the execution of the service, information for requesting the present of information contained in the agent 46, and information for designating an estimating method such as the preferential degree for the estimation. The agent 46 reads the message 49 to which the cooperative information is added (step 222), and the selector 51 determines the process in accordance with the contents of the cooperative information 50 (step 223). If the contents of the cooperative information 50 is such information as to entrust the execution of the services, the selector 51 transfers the message 49 to the executing section 52, which then execute the services indicated in the message 49 (step 224). If the contents of the cooperative information 50 is such information as to request the presentation of information, the selector 51 receives the attributes of the agent 46 indicated in the cooperative information from the attributes storing section 54 and transfers them outside (step 225). If the contents of the cooperative information 50 is to designate the estimating method, the selector 51 transfers the message 49 containing the cooperative information 50 to the estimating section 53, which then makes an estimation in accordance with the cooperative information (step 226).

[0114] As mentioned above, in this embodiment, the field manager 48 converts the contents of the cooperative information 50 and transfers them to the agent 46. As a result, it is possible to readily perform complicated cooperative operations simply by previously providing the means for executing the cooperative operation in accordance with the contents of the instructive information contained in the cooperative information 50, namely the executing section 52, the estimating section 53, and the attributes storing section 54 in each agent 46.

[0115] Fifth Embodiment

[0116]FIG. 14 shows a fifth embodiment of this invention. In FIG. 14, components equivalent to those in the previous embodiment are designated by the same numerals. As a significant feature of this invention, there is provided an entrusted target memory section 55 as a means for storing a combination of request patterns from a user and the agent that actually accepted the request as a set.

[0117]FIG. 15 is a flow diagram showing a process of this embodiment.

[0118] In a multi-agent cooperating system composed as mentioned above, the field manager 48 reads the request from the user (step 231), and judges if the request pattern corresponding to the request exists in the entrusted target memory section 55 (step 232). If no corresponding pattern exists, normal processing is executed in accordance with cooperating rule previously prescribed (step 233). Namely, the contents of the request from the user are notified to the agent 46 in the field 47, and this agent 46 estimates the request, and if it judges to be able to process the request by itself, it inform the field manager 48 of that. The field manager 48 selects one agent 46 to process the request from the user in accordance with predetermined estimating criterion as shown in the first embodiment, for example. Thus, the agent 46 having finally processed the request and the request pattern are stored in the entrusted target memory section 55 as a set (step 234). If the request pattern corresponding to the entrusted target memory section 55 exists, the agent 46 having the entrusted target memory section 55 containing the request is preferentially and directly asked to execute the request (step 235).

[0119] As mentioned above, according to this embodiment, it is unnecessary to repeat the same cooperative operation each time so as to improve the processing efficiency since the same agent 46 stored in the entrusted target storing section 55 executes the process.

[0120] Sixth Embodiment

[0121] As a significant feature of the fifth embodiment, the set of the request pattern and the agent 46 having finally executed the request has been stored in the entrusted target storing section 55. In this embodiment, among the sets of the request and the agent having accepted the process of the request but not finally executing the process, those having an estimated value equal to or more than a threshold value after being referred to a predetermined estimating criterion that is a threshold contained in the field manager are stored in the entrusted target storing section 55.

[0122]FIG. 16 is a flow diagram showing the process according to this embodiment.

[0123] The field manager 48 reads the request from the user (step 241), and judges if the corresponding request pattern exists in the entrusted target memory section 55 (step 242). If no request pattern exists, normal processing is executed in accordance with a predetermined cooperating rule (step 243). At this time, among the agents 46 having an accepted to process the request, the group of the agent 46 having estimated value equal to or larger than a predetermined threshold of the field manager 48 together with the request pattern is stored in the entrusted target storing section 55 (step 244). When the request is input again, if the request pattern corresponding to the request exists in the entrusted target memory section 55, the request is presented only to the agent 46 stored in the entrusted target memory section 55, so that the cooperative operation is executed just between these agents 46 (step 245).

[0124] Incidentally, in the aforementioned embodiments 5 and 6, the entrusted target memory section 55 has been composed so as to be used by the field manager 48, but alternatively it is also possible to make the entrusted target memory section 55 be used by the user agent in the third embodiment, so that the user agent is ordered to limit the agents to be entrusted to process the request depending on the request pattern.

[0125] Seventh Embodiment

[0126]FIG. 17 shows a seventh embodiment of this invention. As a significant feature of this embodiment, there is provided a user selecting section 56 which presents the conditions for accepting the process sent from the agent 46 collectively to the user so that the user selects an appropriate agent 46 and to entrust the agent 46 to actually process the request based on the result of the selection. The other components are the same as those in fifth and sixth embodiments so as to be omitted from explanation.

[0127]FIG. 18 is a flow diagram showing the process according to this embodiment.

[0128] This embodiment is composed of the steps of: reading the request from the user by the field manager 48 (step 251); announcing the request to the agent 46 in the field 47 (step 252); sending conditions for executing the process to the agent 46 having judged to be able to process the request (step 253); presenting the conditions to the user using the user selecting section 56 by the field manager (step 254); selecting by the user an agent 46 having presented conditions that are the closest to the request of its own from the presented condition; actually entrusting the selected agent 46 by the field manager 48 to execute the process for the request (step 256); and processing the request by the entrusted agent 46 (step 257).

[0129] The operation of this embodiment will now be described with reference to FIG. 18.

[0130] In FIG. 251, the field manager 48 reads the request presented to the field 47 from the user. In step 252, the contents of the read request are sent to each agent in the field 47. In step 253, if the noticed agent 46 estimates the request as being processable by itself, it returns conditions for accepting the request. In step 254, the field manager 48 presents the conditions returned from the agent 46 to the user in a form selectable by the user through the user selecting section 56. In step 255, the agent 46 having presented the conditions closest to the request of its own among the presented conditions is selected. In step 256, the field manager 48 entrusts the agent 46 which corresponds to the conditions selected by the user to execute the process of the request. In step 257, the entrusted agent 46 executes the request.

[0131] As mentioned above, according to this embodiment, since detailed contents which are capable of being actually processed by the agents 46 even when the user inputs a request without designating the target agent so that the user actually selects the process and makes the agent execute the process, the utility of the user can be significantly increased.

[0132] Thus, by virtue of the aforementioned composition of this invention, the following advantages are obtained:

[0133] The planning, the resource distribution and the elemental function can be separately defined. As a result, the description of the application is simplified and eased, and also the definitions can be readily changed. Further, the total system mounting process can be made easily.

[0134] The cooperative definition can be made separately from those of the planning, resource distribution, and elemental function. Therefore, the description of the application is simplified and eased. The cooperative definition can also be easily changed.

[0135] Since the definition of the cooperation is described by the field manager, that of the plan by the planning agent, that of the elemental function by the elemental function agent, respectively, and a frame work to make them cooperatively function is provided, applications and total system can be readily obtained.

[0136] When an elemental function agent is introduced, the profile describing the contents relating only to the agent is automatically broadcasted and the necessary portions are automatically renewed. In consequence, it is unnecessary to make any renewal or rearrangement of the other portions of the system, which would improve the modularity between the elements.

[0137] Since three classes of estimating criterion are provided, and the estimation is made in the order from the hardest restriction, the estimating efficiency is improved. Also, the criterion is defined independently by each class for estimation, it is possible to provide the estimating data definition and the estimating process.

[0138] The definition of plan is opened to the user so as to be instantly suited to the needs of the user, and the planning process which is normally complicated and requires significant time to execute may be omitted. Consequently, the total process efficiency can be enhanced.

[0139] Since the user input is converted into an appropriate form reflecting the characteristics of the user within a scope that is acceptable by the system so as to be then transferred to the multi-agent cooperating system of this invention, the form or contents of the user information need not be recognized by the system side, which contributes to simplify the composition. Further, it is possible to easily cope with a plurality of users by simply coupling a module exclusive for each user to the system.

[0140] In addition, the cooperative operation of the agent can be changed by changing the contents of the cooperative information by the field manager, it is possible to realize a complicated function merely by mounting simple agents, and further it is possible to perform different cooperative operations when the field is changed within the same agent.

[0141] In addition, when the same request is repeatedly input, the process of the request is directly entrusted to the same agent as previously functioned, so it is unnecessary to repeat the same cooperative operation, which contributes to improved processing efficiency.

[0142] Moreover, by storing the agents which are capable of processing the request from the user and have an estimated value equal to or larger than the estimating criterion, it is possible to perform the cooperative operation just between these agents. Accordingly, the time required to execute the cooperative operation can be shortened since the range of the cooperation is shortened, and the request from the user can be replied to with high accuracy, so as to improve the processing efficiency.

[0143] Moreover, since the system operates at the time that the user inputs the request in a diffusion environment, even if the user does not recognize where the services are and which resources are capable of meeting its request, the agent which has the service and the resource for meeting the request can reply by itself. As a result, the utility of the services and the resources in the diffusion environment can be easily enhanced. 

What is claimed is:
 1. A multi-agent cooperating system for providing services in reply to a request from a user by cooperative operation of a plurality of agents, said system comprising: a means for storing a combination of a request pattern from the user and selected agent suited to execute the request among the agents available for processing the request; means for distributing a subsequent request of the same pattern to the selected agent.
 2. A multi-agent cooperating system for providing services in reply to a request from a user by cooperative operation of a plurality of agents, said system comprising: a means for storing a request pattern from the user and a portion of said plurality of agents which provide an estimation value higher than a predetermined estimation criterion; means for determining cooperative operation said portions of agents upon receipt of a request of the same pattern.
 3. A multi-agent cooperating method for executing cooperative operation by use of a multi-agent cooperating system having agents for providing services requested from a user and a field manager for managing cooperative operation of the agents so as to provide services in reply to a request from a user by cooperative operation of a plurality of agents using messages in a field within a scope of the management by the field manager, said method comprising the steps of: transmitting information from said field manager to the agents in the field of the request from the user; determining agents which can process the request; presenting conditions to said user to accept the request from the agents which can process the request; and executing the request by an agent corresponding to conditions designated by the user. 